<?php

namespace app\index\validate;
use think\Validate;

class Address extends Validate
{
    protected $rule = [
        'name'          => 'require',
        'mobile'        => 'require|mobile',
        'addr'          => 'require|chsDash'
    ];

    protected $message = [
        'name.require'      => '用户名不能为空',
        'mobile.require'    => '手机号不能为空',
        'mobile.mobile'     => '手机号格式不正确',
        'addr.require'      => '详细地址不能为空',
        'addr.chsDash'      => '详细地址不合法'
    ];
}
